package com.yanqu.xiuxian.config.elementalbonds;

import com.yanqu.xiuxian.config.annotations.ConfigAnnotation;
import com.yanqu.xiuxian.config.annotations.ConfigFieldAnnotation;
import com.yanqu.xiuxian.config.annotations.ConfigFileAnnotation;
import com.yanqu.xiuxian.config.utils.excel.StringUtils;

import java.util.List;
@ConfigFileAnnotation(fileName = "ElementalBondsScene")
public class ElementalBondsSceneConfig {
    private int id; // ElementalBondsSceneType
    private int isOpen;
    @ConfigFieldAnnotation(filedName = "param", parseMethod = "parseParam")
    private List<Integer> paramList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(int isOpen) {
        this.isOpen = isOpen;
    }

    public List<Integer> getParamList() {
        return paramList;
    }

    public void setParamList(List<Integer> paramList) {
        this.paramList = paramList;
    }

    public void parseParam(String param) {
        this.paramList = StringUtils.stringToIntegerList(param, "\\|");
    }

}
